package com.sy.common.bean;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api("分页结果")
public class PageBean<T> {
    @ApiModelProperty("当前页，默认第1页")
    int page;
    @ApiModelProperty("每页记录数，默认10条")
    int pageSize;
    @ApiModelProperty("总记录数")
    long total;
    @ApiModelProperty("分页结果")
    T list;
}
